package copyengine.dataLayer.query.database
{

	public final class CEDatabaseQueryManger
	{
		private static var _instance:CEDatabaseQueryManger;

		public static function get instance():CEDatabaseQueryManger
		{
			if (_instance == null)
			{
				_instance = new CEDatabaseQueryManger();
			}
			return _instance;
		}

		private var factory:ICEDatabaseQueryExcuteFactory;

		public function CEDatabaseQueryManger()
		{
		}

		public function initialize(_factory:ICEDatabaseQueryExcuteFactory):void
		{
			factory = _factory;
		}

		public function excuteDatabaseQuery(_callBackFunction:Function, _queryClass:Class, _param:Object = null):void
		{
			factory.excuteDatabaseQuery(_callBackFunction,_queryClass , _param);
		}

	}
}